//题目链接：https://www.nowcoder.com/practice/49e772ab08994a96980f9618892e55b6?tpId=37&tqId=21280&ru=/exam/oj

#include <iostream>
#include <string>
#include <vector>
using namespace std;

vector<int> add(vector<int>& A , vector<int>& B)
{
    int t = 0;
    vector<int> C;
    for(int i = 0 ; i < A.size() || i < B.size() ; ++i)
    {
        if(i < A.size()) t += A[i];
        if(i < B.size()) t += B[i];
        C.push_back(t % 10);
        t /= 10;
    }
    if(t) C.push_back(1);
    return C;
}
int main() {
    string s1,s2;
    cin >> s1 >> s2;
    vector<int> A , B;
    for(int i = s1.size()-1 ; i >= 0 ; --i) A.push_back(s1[i]-'0');
    for(int i = s2.size()-1 ; i >= 0 ; --i) B.push_back(s2[i]-'0');
    vector<int> C = add(A,B);
    for(int i = C.size()-1 ; i >= 0 ; --i) printf("%d",C[i]);
    return 0;
}
// 64 位输出请用 printf("%lld")